import Ajax from './customajax'

export default {
    getProblem() {
        const url = '/dirms/monitor/problem/get';
        return Ajax.save(url);
    },
    getProblemByLevel(level) {
        const url = '/dirms/monitor/problem/getByLevel/' + level;
        return Ajax.save(url);
    },
    getProblemPageAll(params) {
        const url = '/dirms/monitor/problem/all';
        return Ajax.query(url, params);
    },
    getProblemPageQuery(pageNo, pageSize, params) {
        const url = '/dirms/monitor/problem/pagequery';
        return Ajax.pageQueryPost(url, params, pageNo, pageSize);
    },
    getAlarmSetList() {
        const url = '/dirms/monitor/action/get';
        return Ajax.query(url);
    },
    upAlarmSetStatus(id, status) {
        const url = '/dirms/monitor/action/updateStatus/' + id + '/' + status;
        return Ajax.save(url);
    },
    acknowledge(params) {
        var url = '/dirms/monitor/event/acknowledge';
        return Ajax.save(url, params);
    }
}